package com.example.p813asyncprocess;

import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
public class P813AsyncProcessApplication {

    public static void main(String[] args) {
        SpringApplication.run(P813AsyncProcessApplication.class, args);
    }

    @Bean
    public ApplicationRunner startupRunner(HelloWorld hello) {
        return args -> {hello.printMessage();};
    }

}
